// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_QUALITY_CHECKING
// * CreateDate    : 2011-10-25 10:44:41
// * Creater       : CodeSmith
// * LastChangeDate: 2011-10-25 10:44:41
// * LastChanger   : 2011-10-25 10:44:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class ProdQualityCheckingEntity : EntityBase
    {
        public ProdQualityCheckingTable TableSchema
        {
            get
            {
                return ProdQualityCheckingTable.Current;
            }
		}
		
		public ProdQualityCheckingEntity()
        {

        }
		
		public ProdQualityCheckingEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.QualityCheckingId = Convert.ToString(CommonFunctions.ToObject(dr["QUALITY_CHECKING_ID"]));
			this.ReportId = Convert.ToString(CommonFunctions.ToObject(dr["REPORT_ID"]));
			this.ProcessType = Convert.ToString(CommonFunctions.ToObject(dr["PROCESS_TYPE"]));
			this.NgCode = Convert.ToString(CommonFunctions.ToObject(dr["NG_CODE"]));
			this.CreateDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_DATE"]));
			this.CreateBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATE_BY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
        }
		
		public ProdQualityCheckingEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.QualityCheckingId = Convert.ToString(CommonFunctions.ToObject(dr["QUALITY_CHECKING_ID"]));
			this.ReportId = Convert.ToString(CommonFunctions.ToObject(dr["REPORT_ID"]));
			this.ProcessType = Convert.ToString(CommonFunctions.ToObject(dr["PROCESS_TYPE"]));
			this.NgCode = Convert.ToString(CommonFunctions.ToObject(dr["NG_CODE"]));
			this.CreateDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_DATE"]));
			this.CreateBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATE_BY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdQualityCheckingTable.Current;
            }
        }
		
		#region Perporty List
        public string QualityCheckingId
        {
            get { return Convert.ToString(GetData(ProdQualityCheckingTable.C_QUALITY_CHECKING_ID)); }
            set { SetData(ProdQualityCheckingTable.C_QUALITY_CHECKING_ID, value); }
        }
		
        public string ReportId
        {
            get { return Convert.ToString(GetData(ProdQualityCheckingTable.C_REPORT_ID)); }
            set { SetData(ProdQualityCheckingTable.C_REPORT_ID, value); }
        }
		
        public string ProcessType
        {
            get { return Convert.ToString(GetData(ProdQualityCheckingTable.C_PROCESS_TYPE)); }
            set { SetData(ProdQualityCheckingTable.C_PROCESS_TYPE, value); }
        }
		
        public string NgCode
        {
            get { return Convert.ToString(GetData(ProdQualityCheckingTable.C_NG_CODE)); }
            set { SetData(ProdQualityCheckingTable.C_NG_CODE, value); }
        }
		
        public DateTime CreateDate
        {
            get { return Convert.ToDateTime(GetData(ProdQualityCheckingTable.C_CREATE_DATE)); }
            set { SetData(ProdQualityCheckingTable.C_CREATE_DATE, value); }
        }
		
        public string CreateBy
        {
            get { return Convert.ToString(GetData(ProdQualityCheckingTable.C_CREATE_BY)); }
            set { SetData(ProdQualityCheckingTable.C_CREATE_BY, value); }
        }
		
        public DateTime ApprovedDate
        {
            get { return Convert.ToDateTime(GetData(ProdQualityCheckingTable.C_APPROVED_DATE)); }
            set { SetData(ProdQualityCheckingTable.C_APPROVED_DATE, value); }
        }
		
        public string ApprovedBy
        {
            get { return Convert.ToString(GetData(ProdQualityCheckingTable.C_APPROVED_BY)); }
            set { SetData(ProdQualityCheckingTable.C_APPROVED_BY, value); }
        }
		
		#endregion
	}
	
	
}	

